import fetch from '@/utils/fetch'

// 客户批量导入
export function apiCustomReadExcel(listQuery) {
  return fetch({
    url: '/api/v1/excel/customer/read',
    method: 'POST',
    data: {
      filePath: listQuery
    }
  })
}

// 外包商批量导入
export function apiOutsourcerReadExcel(listQuery) {
  return fetch({
    url: '/api/v1/excel/outsourcer/read',
    method: 'POST',
    data: {
      filePath: listQuery
    }
  })
}

// 工厂批量导入
export function apiFactoryReadExcel(listQuery) {
  return fetch({
    url: '/api/v1/excel/factory/read',
    method: 'POST',
    data: {
      filePath: listQuery
    }
  })
}

// 产品批量导入
export function apiProductReadExcel(listQuery) {
  return fetch({
    url: '/api/v1/excel/product/read',
    method: 'POST',
    data: {
      filePath: listQuery
    }
  })
}

// 物料批量导入
export function apiMaterielReadExcel(listQuery) {
  return fetch({
    url: '/api/v1/excel/materiel/read',
    method: 'POST',
    data: {
      filePath: listQuery
    }
  })
}

// 故障批量导入
export function apiFaultReadExcel(listQuery) {
  return fetch({
    url: '/api/v1/excel/fault/read',
    method: 'POST',
    data: {
      filePath: listQuery
    }
  })
}

// 员工批量导入
export function apiStaffReadExcel(listQuery) {
  return fetch({
    url: '/api/v1/excel/staff/read',
    method: 'POST',
    data: {
      filePath: listQuery
    }
  })
}

// 受理批量导入
export function apiAcceptReadExcel(uploadDto) {
  return fetch({
    url: '/api/v1/excel/accept/read',
    method: 'POST',
    data: uploadDto
  })
}

// 受理完整模板导入
export function apiAcceptCompleteReadExcel(uploadDto) {
  return fetch({
    url: '/api/v1/excel/accept/complete/read',
    method: 'POST',
    data: uploadDto
  })
}

// 调拨发放导入
export function apiLogisticsReadExcel(listQuery) {
  return fetch({
    url: '/api/v1/excel/logistics/read',
    method: 'POST',
    data: listQuery
  })
}

// 用户批量导入
export function apiUserReadExcel(listQuery) {
  return fetch({
    url: '/api/v1/excel/user/read',
    method: 'POST',
    data: {
      filePath: listQuery
    }
  })
}

// 办事处批量导入
export function apiOfficeReadExcel(listQuery) {
  return fetch({
    url: '/api/v1/excel/office/read',
    method: 'POST',
    data: {
      filePath: listQuery
    }
  })
}

// 备机发放批量导入check
export function apiSpareDistributeReadExcel(listQuery) {
  return fetch({
    url: '/api/v1/excel/distribute/read',
    method: 'POST',
    data: listQuery
  })
}

// 备机收机批量导入check
export function apiSpareReceiveReadExcel(listQuery) {
  return fetch({
    url: '/api/v1/excel/receive/read',
    method: 'POST',
    data: listQuery
  })
}

// 调拨收机批量导入check
export function apiAllotReceiveReadExcel(listQuery) {
  return fetch({
    url: '/api/v1/excel/allot/receive/read',
    method: 'POST',
    data: listQuery
  })
}

// 良品库批量导入check
export function apiGoodStockReadExcel(listQuery) {
  return fetch({
    url: '/api/v1/excel/good/stock/read',
    method: 'POST',
    data: listQuery
  })
}

// 良品转不良品导入
export function apiExchangeGoodReadExcel(listQuery) {
  return fetch({
    url: '/api/v1/excel/exchange/good/read',
    method: 'POST',
    data: listQuery
  })
}

// 不良品库批量导入check
export function apiBadStockReadExcel(listQuery) {
  return fetch({
    url: '/api/v1/excel/bad/stock/read',
    method: 'POST',
    data: listQuery
  })
}

// 报废库批量导入check
export function apiScrapStockReadExcel(listQuery) {
  return fetch({
    url: '/api/v1/excel/scrap/stock/read',
    method: 'POST',
    data: listQuery
  })
}

// 外包点批量导入
export function apiOutsourcerPointReadExcel(listQuery) {
  return fetch({
    url: '/api/v1/excel/outsourcer/point/read',
    method: 'POST',
    data: listQuery
  })
}

// 外包点维修人员批量导入
export function apiPointRepairerReadExcel(listQuery) {
  return fetch({
    url: '/api/v1/excel/point/repairer/read',
    method: 'POST',
    data: listQuery
  })
}

// 网点收机批量导入
export function apiPointReceiveReadExcel(listQuery) {
  return fetch({
    url: '/api/v1/excel/point/receive/read',
    method: 'POST',
    data: listQuery
  })
}

// 工厂收机批量导入
export function apiFactoryReceiveReadExcel(listQuery) {
  return fetch({
    url: '/api/v1/excel/factory/receive/read',
    method: 'POST',
    data: listQuery
  })
}

// 特殊出库导入
export function apiSpecialOutStockReadExcel(listQuery) {
  return fetch({
    url: '/api/v1/excel/stock/special/out/read',
    method: 'POST',
    data: listQuery
  })
}
// 工厂批量维修模板导入
export function apiFactoryBatchRepairReadExcel(uploadDto) {
  return fetch({
    url: '/api/v1/excel/factory/batch/repair/read',
    method: 'POST',
    data: uploadDto
  })
}
